package com.cloudfun.campusshare.common.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author cmt
 * @Title: 应用编辑信息
 * @date 2019/11/29 上午11:19
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "应用编辑信息")
public class AppEditVO {
    @ApiModelProperty(value = "应用id")
    private String appId;

    @ApiModelProperty(value = "应用名称")
    @NotEmpty(message = "应用名称不能为空")
    @Length(max = 20, message = "名称过长，限制20个字")
    private String name;

    @ApiModelProperty(value = "应用简介")
    @Length(max = 200, message = "应用简介限制400个字")
    private String description;

    @ApiModelProperty(value = "版本号")
    @NotEmpty(message = "应用简介不能为空")
    @Length(max = 10, message = "应用简介限制400个字")
    private String appVersion;

    @ApiModelProperty(value = "版本描述")
    @NotEmpty(message = "应用简介不能为空")
    @Length(max = 200, message = "应用简介限制400个字")
    private String versionDesc;

}
